-- GENERATED SPELL FOR [Sartura's Royal Guard] --


function spell0_15984(pUnit, Event) --@Knockback,Self--
pUnit:FullCastSpellOnTarget(26027,pUnit)
pUnit:RegisterEvent('Sorts_15984', 580, 1)
end

function spell1_15984(pUnit, Event) --@Whirlwind,n/a--
pUnit:FullCastSpellOnTarget(26038,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15984', 8000, 1)
end

function spell2_15984(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(26686,pUnit)
pUnit:RegisterEvent('Sorts_15984', 672, 1)
end

function Sorts_15984(pUnit, Event)
local choix_sorts_15984 = math.random(0, 2)
if choix_sorts_15984 == 0 then
pUnit:RegisterEvent('spell0_15984', 1, 1)
end
if choix_sorts_15984 == 1 then
pUnit:RegisterEvent('spell1_15984', 1, 1)
end
if choix_sorts_15984 == 2 then
pUnit:RegisterEvent('spell2_15984', 1, 1)
end
end

function mob15984_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15984', math.random(1500, 3000), 1)
end

function mob15984_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15984_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15984_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15984, 1, 'mob15984_Action')
RegisterUnitEvent(15984, 2, 'mob15984_Leave')
RegisterUnitEvent(15984, 3, 'mob15984_Kill')
RegisterUnitEvent(15984, 4, 'mob15984_Die')
